package cn.scw.project.goods.domain.netework.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @description:
 * @author: lj
 * @create: 2020-05-22
 **/
@Data
@ApiModel("商品添加")
public class GCommodityAddReq {

    @ApiModelProperty("商品id")
    private Long id;

    @ApiModelProperty("轮播图片")
    private String carouselUrl;

    @ApiModelProperty("缩略图")
    private String litimgUrl;

    @ApiModelProperty("商品名称")
    private String name;

    @ApiModelProperty("商品简介")
    private String intro;

    @ApiModelProperty("商品押金")
    private Double cashPledge;

    @ApiModelProperty("商品类型（0设备采购，1设备租赁-包月，2设备租赁-两年赠机）")
    private String purchasingTypes;

    @ApiModelProperty("商品价格")
    private Double price;

    @ApiModelProperty("商品数量")
    private Integer count;

    @ApiModelProperty("商品详情")
    private String details;

    @ApiModelProperty("商品分类（0：设备；1：办公耗材）")
    private String facilityType;

    @ApiModelProperty("商品详细分类-字典表维护")
    private Long facilityDetailsType;

    @ApiModelProperty("是否上架(可选，默认是-true)")
    private Boolean isPutaway=true;

    @ApiModelProperty("是否多规格(可选，默认否-false)")
    private Boolean isModel=false;

    @ApiModelProperty("商品规格（isModel=true 时必填且规格数大于1以上）")
    private List<GCommodityModelAddReq> modelList;

    @ApiModelProperty("删除商品规格id（可选）")
    private Long[] delModelList;

}
